/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "gtt_line.h"
#include <QDebug>

GTT_Line::GTT_Line(QObject *parent) :
    QObject(parent)
{
}

QString GTT_Line::getLineaNumero() { return hiddenLineaNumero; }

void  GTT_Line::setLineaNumero(const QString &num) {
    hiddenLineaNumero = num;
}

QStringList GTT_Line::getOrario() { return hiddenOrario; }

QList<bool> GTT_Line::getRealTime() { return hiddenRealTime; }

void GTT_Line::addOrario(const QString &time, bool rt) {
    //qDebug() << "addOrario " << time << " xxx " << rt;
    hiddenOrario.append(time);
    hiddenRealTime.append(rt);
}


void GTT_Line::printLinea(){
    if (hiddenRealTime.count() == hiddenRealTime.count()) {
        //print
        qDebug() << "Linea: " << hiddenLineaNumero;
        qDebug() << hiddenOrario;
        qDebug() << hiddenRealTime;
    }
    else {
        qDebug() << "errore dim di vect Orario e Realtime non coincide";
    }
}
